//
//  CTVDownloadController.h
//  Channltv
//
//  Progress bar with percent and download time
//
//  Created by Bruno  Keymolen on 22/07/07.
//  Copyright 2007 channl.tv. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface CTVDownloadController : BRControl {
	BRRenderLayer*	m_mainlayer; 
	BRProgressBarWidget*   m_progresslayer;
	BRTextControl* m_textlayer;
	BRTextControl* m_mbLayer;
	BRTextControl* m_timeLeftLayer;
	int m_percent;
	NSString* m_text;
//	BOOL m_visible;
	

}

- (id) initWithScene: (BRRenderScene *) scene;
- (void) dealloc;

- (void) setFrame: (NSRect) frame;
- (BRRenderLayer *)layer;

- (void) setText:(NSString*)text;
- (void) setPercent:(int)percent;

-(void) redraw;


-(void)setTimeLeft:(NSString*)timeLeft;
-(void)setMB:(NSString*)mb;


//Private
-(void)_layout;

@end
